const { error } = require('console')
const fs = require('fs')
//调用 appendFile
fs.appendFile('./座右铭.txt','择其善则仍处在',error=>{
    if (error) {
        console.log('写入失败');
    }
})

console.log('xxxx');
